<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>添加页面</h1>
<form action="edit" method="post">
    <input type="hidden" name="sid" th:value="${student.sid}">
    姓名：<input type="text" name="sname" th:value="${student.sname}"><br>
    专业：
    <select name="mid">
        <option value="">--请选择--</option>
        <option value="1" th:selected="${student.mid == 1}">体育</option>
        <option value="2" th:selected="${student.mid == 2}">花花</option>
        <option value="2" th:selected="${student.mid == 3}">学习</option>
    </select><br>
    城市：
    <select name="cid">
        <option value="">--请选择--</option>
        <option value="1"  th:selected="${student.cid == 1}">运城市</option>
        <option value="2"  th:selected="${student.cid == 2}">侯马市</option>
        <option value="3"  th:selected="${student.cid == 3}">临汾市</option>
        <option value="4"  th:selected="${student.cid == 4}">北京市</option>
    </select><br>
    <input type="submit" value="修改">
</form>
</body>
</html>